package two_xia.ex5.Demo03;

import java.io.Serializable;

public class Customer implements Serializable {
    private String name;
    private Address aaddress;

    public Customer(String name, Address address) {
        this.name = name;
        this.aaddress = address;
    }

    public Customer(Customer c) {
        this.name = c.name;
        this.aaddress = c.aaddress;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return this.name + " " + this.aaddress;
    }

}